package com.atguigu.cloud.controller;

import com.atguigu.cloud.apis.PayFeignApi;
import com.atguigu.cloud.apis.PayalibabaFeignApi;
import com.atguigu.cloud.utils.ResultData;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: huahua
 * @Date: 2024/6/13 0013
 * @Time: 15:03
 * @Description:
 */
@RestController
public class OrderNacosFeignController {

    @Resource
    public PayalibabaFeignApi payalibabaFeignApi;

    @GetMapping(value = "/pay/feign/alibaba/info")
    public ResultData<String> getInfo(){

        System.out.println("--------------------");
        return payalibabaFeignApi.getInfo();
    }
}
